package com.zhj.edu.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 权限资源表 
 * </p>
 *
 * @author xiaobobo
 * @since 2024-09-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("qf_menu")
@ApiModel(value="Menu对象", description="权限资源表 ")
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "菜单id 菜单id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "父亲id 父亲id")
    @TableField("parentId")
    private Integer parentId;

    @ApiModelProperty(value = "权限值 权限值")
    @TableField("permVal")
    private String permVal;

    @ApiModelProperty(value = "路由索引 路由索引")
    @TableField("routerIndex")
    private String routerIndex;

    @ApiModelProperty(value = "图标 图标")
    private String icon;

    @ApiModelProperty(value = "类型 类型")
    @TableField("typeLevel")
    private Integer typeLevel;

    @ApiModelProperty(value = "标题 标题")
    private String title;

    @ApiModelProperty(value = "离线乐观锁 离线乐观锁")
    @Version
    private Integer version;

    @ApiModelProperty(value = "创建时间 创建时间")
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新时间 更新时间")
    @TableField(value = "updateTime", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除 逻辑删除")
    @TableLogic
    private Integer deleted;


}
